@(changeForm: play.data.Form[controllers.gsn.auth.Account.PasswordChange])

@import helper._
@import play.core.j.PlayMagicForJava._
@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapBasic.f) }

@main(Messages("playauthenticate.change.password.title")) {

	<h1>@Messages("playauthenticate.change.password.title")</h1>
	<p>
	@form(controllers.gsn.auth.routes.Account.doChangePassword, 'class -> "form-inline", 'role -> "form") {

       @if(changeForm.hasGlobalErrors) {
        <p class="alert alert-danger">
          @changeForm.globalError.message
     	</p>
       }

	   @_passwordPartial(changeForm)

    <button type="submit" class="btn btn-default">@Messages("playauthenticate.change.password.cta")</button>
	}
	</p>
}
